package com.example.month11.fragment2.base;

import androidx.fragment.app.Fragment;

public class BaseFragment extends Fragment {

    public boolean onActivityBackPressed() {
        return getBaseActivity().onActivityBackPressed();
    }

    public boolean onFragmentBackPressed() {
        return false;
    }


    public BaseActivity getBaseActivity() {
        return getActivity() != null ? (BaseActivity) getActivity() : null;
    }

    public void onFragmentResume() {

    }

    public void onHttpMsgArrived(int requestType,  int type,  int code,  String result){};

}
